package com.zhongchaowuye.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.github.pagehelper.PageHelper;
import com.zhongchaowuye.dao.A_ZhLDao;
import com.zhongchaowuye.pojo.A_ZhL;
import com.zhongchaowuye.service.A_ZhLService;

@Transactional
@Service("a_ZhLService")
public class A_ZhLServiceImpl implements A_ZhLService
{
	@Resource
	A_ZhLDao a_ZhLDao;
	
	@Override
	public int insertA_ZhL(A_ZhL a_ZhL) {
		// TODO Auto-generated method stub
		return a_ZhLDao.insertA_ZhL(a_ZhL);
	}

	@Override
	public int updateA_ZhL(A_ZhL a_ZhL) {
		// TODO Auto-generated method stub
		return a_ZhLDao.updateA_ZhL(a_ZhL);
	}

	@Override
	public int delA_ZhL(A_ZhL a_ZhL) {
		// TODO Auto-generated method stub
		return a_ZhLDao.delA_ZhL(a_ZhL);
	}
	
	@Override
	public A_ZhL getA_ZhL(A_ZhL a_ZhL) {
		// TODO Auto-generated method stub
		return a_ZhLDao.getA_ZhL(a_ZhL);
	}
	
	@Override
	public List<Map<String, Object>> getA_ZhLList(A_ZhL a_ZhL) {
		// TODO Auto-generated method stub
		PageHelper.startPage(a_ZhL.getPageIndex(),a_ZhL.getPageSize(),true);
		return a_ZhLDao.getA_ZhLList(a_ZhL);
	}
}
